package com.sakura.thread.chapter7;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created by apple on 2018/12/19.
 */
public class AtomicIntegerTest {
    public static void main(String[] args) {
        AtomicInteger a = new AtomicInteger();
        System.out.println(a.getAndIncrement());
        System.out.println(a.get());
        System.out.println(a.incrementAndGet());
        System.out.println(a.get());
    }
}
